
package fmu.pi.model.connector.connections;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import fmu.pi.model.connector.Conexao;
import fmu.pi.utils.PropertiesUtil;

public class ConexaoMysql implements Conexao { 
	
    public Connection openConnection() throws SQLException {

        return DriverManager.getConnection(
        		PropertiesUtil.getProperty("server.db.url"), 
        		PropertiesUtil.getProperty("server.db.user"), 
        		PropertiesUtil.getProperty("server.db.password"));
    }
}
